package com.ruoyi.pet.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pet.mapper.PetChiefComplaintMapper;
import com.ruoyi.pet.domain.PetChiefComplaint;
import com.ruoyi.pet.service.IPetChiefComplaintService;

/**
 * 医生主诉Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-01
 */
@Service
public class PetChiefComplaintServiceImpl implements IPetChiefComplaintService 
{
    @Autowired
    private PetChiefComplaintMapper petChiefComplaintMapper;

    /**
     * 查询医生主诉
     * 
     * @param id 医生主诉主键
     * @return 医生主诉
     */
    @Override
    public PetChiefComplaint selectPetChiefComplaintById(Long id)
    {
        return petChiefComplaintMapper.selectPetChiefComplaintById(id);
    }

    /**
     * 查询医生主诉列表
     * 
     * @param petChiefComplaint 医生主诉
     * @return 医生主诉
     */
    @Override
    public List<PetChiefComplaint> selectPetChiefComplaintList(PetChiefComplaint petChiefComplaint)
    {
        return petChiefComplaintMapper.selectPetChiefComplaintList(petChiefComplaint);
    }

    /**
     * 新增医生主诉
     * 
     * @param petChiefComplaint 医生主诉
     * @return 结果
     */
    @Override
    public int insertPetChiefComplaint(PetChiefComplaint petChiefComplaint)
    {
        return petChiefComplaintMapper.insertPetChiefComplaint(petChiefComplaint);
    }

    /**
     * 修改医生主诉
     * 
     * @param petChiefComplaint 医生主诉
     * @return 结果
     */
    @Override
    public int updatePetChiefComplaint(PetChiefComplaint petChiefComplaint)
    {
        return petChiefComplaintMapper.updatePetChiefComplaint(petChiefComplaint);
    }

    /**
     * 批量删除医生主诉
     * 
     * @param ids 需要删除的医生主诉主键
     * @return 结果
     */
    @Override
    public int deletePetChiefComplaintByIds(Long[] ids)
    {
        return petChiefComplaintMapper.deletePetChiefComplaintByIds(ids);
    }

    /**
     * 删除医生主诉信息
     * 
     * @param id 医生主诉主键
     * @return 结果
     */
    @Override
    public int deletePetChiefComplaintById(Long id)
    {
        return petChiefComplaintMapper.deletePetChiefComplaintById(id);
    }
}
